<!doctype html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>个人中心</title>
    <link rel="stylesheet" href="/static/app/lib/iconfont/iconfont.css">
    <link rel="stylesheet" href="/static/app/css/style.css">
    <script src="/static/app/lib/zy.rem.js"></script>
    <script src="/static/app/lib/jquery1.12.3.min.js"></script>
    <script src="/static/app/js/base.js"></script>
    <link rel="stylesheet" href="/static/app/css/core.css">
    <script src="/static/layer/layer.min.js"></script>

    <style>
        .info-links{
            margin-top: 0.2rem;
        }
    </style>
</head>
<body>
<div class="header">
    <div></div>
    <div>个人中心</div>
    <div></div>
    <!--<div><a href="javascript:;" class="head-btn iconfont">&#xe765;</a></div>-->
</div>
<div class="center">
    {include file='public:head_img'}
    <div class="info-links">
        <a href="{:url('Core/user')}"><i class="iconfont">&#xe614;</i>个人资料</a>
        <a href="{:url('Core/pass')}"><i class="iconfont">&#xe614;</i>修改密码</a>

        <a href="#" onclick="a_button('{:url(\'Map/fencead\')}')"> <i class="iconfont">&#xe600;</i>安全围栏</a>
        <a href="#" onclick="a_button('{:url(\'Core/recharge\')}')"> <i class="iconfont">&#xe74b;</i>设备续费</a>
        <a href="{:url('Core/recharge11')}"><i class="iconfont">&#xe603;</i>设备续费</a>
		<!--href="https://hebeibeidou.taobao.com/"-->
        <a href="https://t.asczwa.com/taobao?backurl=https://hebeibeidou.taobao.com/" ><i class="iconfont">&#xe603;</i>联系我们</a>
        <a href="{:url('Login/outLogin')}"><i class="iconfont">&#xe6c0;</i>退出登录</a>
    </div>
</div>
{include file='public:bottom'}
<script>
    $(function () {
        localStorage.setItem('appone','北斗1.0');
    });
    function a_button($url){
        //判断是否有绑定设备
        $equ=0;
        {notempty name="$Think.session.dev_name.0"}
        $equ={$Think.session.dev_name.0};
        {/notempty}
            if ($equ==0){
                console.log('没有设备');
                layer.confirm('您未绑定设备', {btn: ["去绑定","取消"], shade:0.1 }, function(index){
                    window.location.replace("{:url('Core/add')}");
                });
            }else {
                console.log(11);
                window.location.replace($url);
            }

   }

</script>
</body>
</html>